@extends('backstage.layout.master')
@section('title', '添加推广')
@section('style')

@stop
@section('content')
    <div class="breadcrumbs" id="breadcrumbs">
        <script type="text/javascript">
            try {
                ace.settings.check('breadcrumbs', 'fixed')
            } catch (e) {
            }
        </script>

        <ul class="breadcrumb">
            <li>
                <i class="icon-home home-icon"></i>
                <a href="backstage/home">主页</a>
            </li>

            <li class="active">
                <a href="/backstage/promo">推广</a>
            </li>
            <li>
                添加推广
            </li>
        </ul><!-- .breadcrumb -->
    </div>

    <div class="page-content">
        <div class="row">
            <div class="col-xs-12">
                <!-- PAGE CONTENT BEGINS -->
                <div class="page-header">
                    <h1>
                        推广
                        <small>
                            <i class="icon-double-angle-right"></i>
                            添加推广
                        </small>
                    </h1>
                </div>
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <form class="form-horizontal" role="form" action="" method="post" enctype="multipart/form-data">
                            <div class="form-group {{$errors->first('promo_name')!=""?'has-error':''}}">
                                <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 推广名称 </label>

                                <div class="col-sm-4">
                                    <input type="text" name="promo_name" value="{{ old('promo_name') }}" id="form-field-1" placeholder="推广名称"
                                           class="width-100">
                                    <input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
                                </div>
                                <div class="col-sm-5">
                                    <div class="help-block col-xs-12 col-sm-reset inline"> {{$errors->first('promo_name')}}</div>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group {{$errors->first('promo_id')!=""?'has-error':''}}">
                                <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 推广Id </label>

                                <div class="col-sm-4">
                                    <input type="text" name="promo_id" value="{{ old('promo_id') }}" id="form-field-1" placeholder="推广Id"
                                           class="width-100">
                                </div>
                                <div class="col-sm-5">
                                    <div class="help-block col-xs-12 col-sm-reset inline"> {{$errors->first('promo_id')}}</div>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group {{$errors->first('description')!=""?'has-error':''}}">
                                <label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 推广描述</label>

                                <div class="col-sm-4">
                                    <textarea class="form-control" name="description" id="form-field-8"
                                              placeholder="推广描述">{{ old('description') }}</textarea>
                                </div>
                                <div class="col-sm-5">
                                    <div class="help-block col-xs-12 col-sm-reset inline"> {{$errors->first('description')}}</div>

                                </div>
                            </div>
                            <div class="clearfix form-actions">
                                <div class="col-md-offset-3 col-md-9">
                                    <button class="btn btn-info" type="submit">
                                        <i class="icon-ok bigger-110"></i>
                                        保存
                                    </button>
                                </div>
                            </div>
                        </form>
                    </div><!-- /.col -->
                </div>

                <div class="col-sm-12">
                <h3 class="header smaller lighter red">注意：</h3>
                <div class="well red">
                    <h4 class="green smaller lighter">注意事项:</h4>
                    1、推广Id：此处的推广Id必须和广告系统中的推广Id保持一致，否则无效</br>
                </div>
            </div>
                <!-- PAGE CONTENT ENDS -->
            </div><!-- /.col -->
        </div><!-- /.row -->
    </div><!-- /.page-content -->
@stop
@section('script')
@stop